package com.hwl.lab.service;

import com.hwl.lab.entity.Area;
import com.hwl.lab.entity.Baoxiao;
import com.hwl.lab.repository.AreaRepository;
import com.hwl.lab.repository.BaoxiaoRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BaoxiaoService {
    @Autowired
    BaoxiaoRepository baoxiaoRepository;

    public Baoxiao saveBaoxiao(Baoxiao baoxiao) {
       return baoxiaoRepository.save(baoxiao);
    }
}
